﻿
namespace Beetle.Sl.EditorControl.Core
{
    public interface IDocCommand : System.ComponentModel.INotifyPropertyChanged
    {
        /// <summary>
        /// 编辑器实例
        /// </summary>
        Editor Editor { get; }

        /// <summary>
        /// 命令名称
        /// </summary>
        string CommandText { get; }

        /// <summary>
        /// 是否可用
        /// </summary>
        bool IsEnabled { get; set; }

        void Load(Editor editor);

        void Excute(object parameter);
    }
}
